package com.dewod.producesales.model.view;

import com.blankj.utilcode.util.ObjectUtils;
import com.dewod.producesales.model.response.PdaSnStatusVo;

public class CabinetSn {

    private String sn;

    private Boolean checked;

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public CabinetSn(String sn) {
        this.sn = sn;
        this.checked = false;
    }

    public CabinetSn(String sn, Boolean checked) {
        this.sn = sn;
        this.checked = checked;
    }

    public CabinetSn(PdaSnStatusVo vo) {
        this.sn = vo.getSn();
        this.checked = ObjectUtils.equals(vo.getStatus(), 1);
    }



}
